package Games.PumpGame.Gui
{
	import flash.display.Bitmap;
	import Framework.BaseGui;
	/**
	 * ...
	 * @author Menno
	 */
	public class RoomGui extends BaseGui
	{
		public var _roomWidth:uint;
		public var _roomLength:uint;
		
		public var _roomLocX:uint;
		public var _roomLocY:uint;
		
		public var _floor:Bitmap;
		
		public function RoomGui() 
		{
			[Embed(source = '../Images/Floor.jpg')]
			var image:Class;
			_floor = new image();
		}
		
		override public function draw():void
		{
			graphics.lineStyle(1, 0xffffff);
			graphics.drawRect(_roomLocX, _roomLocY, _roomWidth, _roomLength);
			
			_floor.x = roomLocX;
			_floor.y = roomLocY;
			_floor.width = roomWidth;
			_floor.height = roomLength;
			
			this.addChild(_floor);
		}
		
		//////////////////////////////////////////////////
		//												//
		// 				PROPERTIES						//
		//												//
		//////////////////////////////////////////////////
				
		public function get roomWidth():uint 
		{
			return _roomWidth;
		}
		
		public function set roomWidth(value:uint):void 
		{
			_roomWidth = value;
		}
		
		public function get roomLength():uint 
		{
			return _roomLength;
		}
		
		public function set roomLength(value:uint):void 
		{
			_roomLength = value;
		}
		
		public function get roomLocX():uint 
		{
			return _roomLocX;
		}
		
		public function set roomLocX(value:uint):void 
		{
			_roomLocX = value;
		}
		
		public function get roomLocY():uint 
		{
			return _roomLocY;
		}
		
		public function set roomLocY(value:uint):void 
		{
			_roomLocY = value;
		}

	}
	
}